﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="customer.aspx.cs" Inherits="TimeIt.beispiele.customer" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Login-Site</title>
    <link rel="stylesheet" type="text/css" href="../style/scripte/spacss.css" />
    <link rel="stylesheet" type="text/css" href="../style/scripte/menu1css.css" />
    <link rel="stylesheet" type="text/css" href="../style/scripte/content.css" />
    <link rel="shortcut icon" href="../style/pictures/logo/iconlogo.png" />
    <style type="text/css">
        .style5
        {
            font-size: xx-large;
        }
        #form1
        {
        }
    </style>
</head>
<body>
    <div id="backgroundbody">
        <div id="templatecontent">
            <div id="content_top">
                <div id="menu_o_bg">
                </div>
                <div id="menu_u_bg">
                </div>
                <div id="content_body">
                    <div id="content_bottom">
                    </div>
                </div>
            </div>
            <div id="content_border">
                <div id="menu_o">
                    <!-- Menu_1 Roll_over and drop_down -->
                    <ul id="Navigation">
                        <li><a href=""></a></li>
                        <li><a href=""></a></li>
                        <li><a href="login.aspx">Logout</a></li>
                        <li><a href="help.aspx">Hilfe</a></li>
                        <li><a href="impressum.aspx">Impressum</a></li>
                    </ul>
                    <!-- Menu_1 Ende!! -->
                </div>
                <!-- Contentbereich!! -->
                <div id="hellocontent">
                    <p style="font-weight: 700; font-size: large">
                        Welcome, &nbsp;<asp:Label ID="UserName" runat="server" Text="User"></asp:Label>!</p>
                </div>
                <div id="editcontent">
                    <form id="form1" runat="server">
                    <div id="customer">
                    </div>
                    <br />
                    <asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" DynamicHorizontalOffset="50"
                        OnMenuItemClick="Menu1_MenuItemClick" Width="400px" Height="50px">
                        <Items>
                            <asp:MenuItem Text="Detailed Invoice" Value="first"></asp:MenuItem>
                            <asp:MenuItem Text="Accomulated invoice" Value="second"></asp:MenuItem>
                        </Items>
                        <StaticHoverStyle BackColor="Black" Font-Bold="True" Font-Underline="True" ForeColor="#66CCFF" />
                        <StaticSelectedStyle BackColor="#4E76F9" HorizontalPadding="50px" />
                    </asp:Menu>
                    <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                        <asp:View ID="View1" runat="server">
                            Latest Calculation:
                            <br />
                            <div id="invoice">
                                <div id="invoiceTxt" style="text-align: right; top: 8px;">
                                    <asp:Image ID="logoMini" runat="server" Height="27px" Width="65px" ImageUrl="~/style/pictures/logo/minilogo.png" />
                                    <strong><span class="style5">&nbsp;PSSW Ltd </span></strong>
                                    <br />
                                    Defaultstreet, 42
                                    <br />
                                    München
                                    <br />
                                    Deutschland
                                </div>
                                <div id="invoiceTxt" style="text-align: left">
                                    <strong><span class="style5">
                                        <asp:Label ID="firm" runat="server" Text="Company"></asp:Label>
                                    </span></strong>
                                    <br />
                                    <asp:Label ID="street" runat="server" Text="Street, Number"></asp:Label>
                                    <br />
                                    <asp:Label ID="postCode" runat="server" Text="Postcode"></asp:Label>
                                    &nbsp;<asp:Label ID="city" runat="server" Text="Location/City"></asp:Label>
                                    <br />
                                    <asp:Label ID="country" runat="server" Text="Country"></asp:Label>
                                </div>
                                <div id="invoiceTxt" style="text-align: right">
                                    Date:
                                    <asp:Label ID="invoiceDate" runat="server" Text="tt.mm.yyyy"></asp:Label>
                                </div>
                                <div id="invoiceTxt" style="text-align: left;">
                                    <br />
                                    <p>
                                        Dear
                                        <asp:Label ID="UserName2" runat="server" Text="User"></asp:Label>&nbsp;<br />
                                        We thank you for the order and charge you following benefits:</p>
                                    <asp:ObjectDataSource ID="odsInvoice" runat="server" SelectMethod="GetCustomerCalcById"
                                        TypeName="bll.clsProjectCollection"></asp:ObjectDataSource>
                                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="odsInvoice"
                                        Height="81px" Width="596px" AllowPaging="True" PageSize="5">
                                        <Columns>
                                            <asp:BoundField DataField="Date" DataFormatString="{0:dd/MM/yyyy}" HeaderText="Date"
                                                SortExpression="Date" />
                                            <asp:BoundField DataField="Hours" HeaderText="Hours" SortExpression="Hours" />
                                            <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
                                            <asp:BoundField DataField="ExternalHourlyRate" HeaderText="Hourly rate" SortExpression="ExternalHourlyRate" />
                                            <asp:BoundField DataField="Costs" HeaderText="Costs" SortExpression="Costs" />
                                        </Columns>
                                    </asp:GridView>
                                    <div id="invoiceTxt" style="text-align: right;">
                                        <strong>Total costs:
                                            <asp:Label ID="costs" runat="server" OnLoad="CalculateCosts"></asp:Label>
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong>
                                    </div>
                                    <br />
                                    Please transfer the required amount to the bank account No. 1234 5678 of the ExampleBank
                                    (Bank code: 70051011)<br />
                                    <br />
                                    Yours sincerely<br />
                                    <br />
                                    WSSP Ltd</div>
                            </div>
                        </asp:View>
                        <asp:View ID="View2" runat="server">
                         Accomulated Calculation:
                            <br />
                            <div id="invoice">
                                <div id="invoiceTxt" style="text-align: right; top: 8px;">
                                    <asp:Image ID="minilogo2" runat="server" Height="27px" Width="65px" ImageUrl="~/style/pictures/logo/minilogo.png" />
                                    <strong><span class="style5">&nbsp;PSSW Ltd </span></strong>
                                    <br />
                                    Defaultstreet, 42
                                    <br />
                                    München
                                    <br />
                                    Deutschland
                                </div>
                                <div id="invoiceTxt" style="text-align: left">
                                    <strong><span class="style5">
                                        <asp:Label ID="company2" runat="server" Text="Company"></asp:Label>
                                    </span></strong>
                                    <br />
                                    <asp:Label ID="address2" runat="server" Text="Street, Number"></asp:Label>
                                    <br />
                                    <asp:Label ID="postcode2" runat="server" Text="Postcode"></asp:Label>
                                    &nbsp;<asp:Label ID="location2" runat="server" Text="Location/City"></asp:Label>
                                    <br />
                                    <asp:Label ID="Label5" runat="server" Text="Country"></asp:Label>
                                </div>
                                <div id="invoiceTxt" style="text-align: right">
                                    Date:
                                    <asp:Label ID="Label6" runat="server" Text="tt.mm.yyyy"></asp:Label>
                                </div>
                                <div id="invoiceTxt" style="text-align: left;">
                                    <br />
                                    <p>
                                        Dear
                                        <asp:Label ID="Label7" runat="server" Text="User"></asp:Label>&nbsp;<br />
                                        We thank you for the order and charge you following benefits:</p>
                                    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1"
                                        Height="81px" Width="596px" AllowPaging="True" PageSize="5" HorizontalAlign="Right">
                                        <Columns>
                                            <asp:BoundField DataField="Category" HeaderText="Category" 
                                                SortExpression="Category">
                                            <ItemStyle HorizontalAlign="Left" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Hours" HeaderText="Hours" SortExpression="Hours">
                                            <ItemStyle HorizontalAlign="Right" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Costs" HeaderText="Costs" SortExpression="Costs">
                                            <ItemStyle HorizontalAlign="Right" />
                                            </asp:BoundField>
                                        </Columns>
                                    </asp:GridView>
                                    <div id="invoiceTxt" style="text-align: right;">
                                        <strong>Total costs:
                                            <asp:Label ID="costs2" runat="server" OnLoad="CalculateCosts"></asp:Label>
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong>
                                    </div>
                                    <br />
                                    Please transfer the required amount to the bank account No. 1234 5678 of the ExampleBank
                                    (Bank code: 70051011)<br />
                                    <br />
                                    Yours sincerely<br />
                                    <br />
                                    WSSP Ltd</div>
                            </div>

                        </asp:View>
                    </asp:MultiView>
                    </form>
                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetCustomerCalcById_Category"
                                          TypeName="bll.clsProjectCollection"></asp:ObjectDataSource>
                </div>
                <!-- Contentbereich Ende!! -->
                <div id="logo">
                </div>
                <br />
                <br />
            </div>
        </div>
    </div>
</body>
</html>
